<%@page isELIgnored="false" pageEncoding="UTF-8" contentType="text/html; UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/layui/layui.js"></script>
</head>
<body>
<table id="bzAdmin" lay-filter="bzAdmin"></table>
<script>
    layui.use("table",function(){
        var table = layui.table;
        table.render({
            elem:"#bzAdmin",
            cols:[[
                {field:"id",title:"编号",sort:true,fixed:"left"},
                {field:"username",title:"用户名"},
                {field:"password",title:"密码"}
            ]],
            url:"${pageContext.request.contextPath}/bzAdmins/showAll",
            page:true,//开启分页

            limits:[5,10,20],//每页条数的选择项
            limit:5//每页显示的条数，默认：10
        });
    })
</script>
</body>
</html>